<?php
/**
 * Tag
 * The main template file for display portfolio page.
 * Author : vthanh_88
 * @package TT
*/


get_header();
TT_page_header('Tags');
#
# Global Slidebar type
#
global $slidebar_type;
$slidebar_type = 'left-1-sidebar';

#
#Get Paged
#
if ( get_query_var('paged') ) {
	$paged = get_query_var('paged');
} elseif ( get_query_var('page') ) { 
	$paged = get_query_var('page');
} else {
	$paged = 1;
}
$posts_per_page = get_theme_option('blog','blog_post_per_page');

$args = array(
	'post_type' => 'post',
	'posts_per_page' => $posts_per_page,
	'paged' => $paged 
);
if(is_page())
{
    
	query_posts($args);
}else{
	global $wp_query;
	$query_args = array_merge( $wp_query->query, $args );
	global $posts;
	$posts=query_posts($query_args);
	}
	
?>
        <div class="container_12">
        	 <div class="grid_3 sidebg siderbar-wrap">
        	 	  <?php dynamic_sidebar('Blog Sidebar'); ?>
        	 </div>
        	 <div class="grid_9">
                	<!-- Portfolio Content Start -->
        			<?php include_once('loop/loop-blog-1-l.php'); ?>
        	 </div>
        	 
        </div>
<?php

get_footer();  
?>